﻿@if (Model.MainPageState == EditState.Preview)
{
    <CnGalWebSite.Shared.MasaComponent.Shared.Editors.Buttons.RevokeButton Url="@("/entries/EditMainPage/" + Model.Id)" ExamineType="Operation.EstablishMainPage" OnClickRevoke="OnRevoke"/>
}


    @if (string.IsNullOrWhiteSpace(Model.MainPage) == false)
    {
        <div class="mb-4">
            <CnGalWebSite.Components.Containers.MasaTitleContainer Title="介绍" Icon="@IconType.MainPage.ToIconString()">
                <CnGalWebSite.Shared.MasaComponent.Shared.Components.Markdown.MarkdownViewTip Text="@Model.MainPage" IsNeedHighlight="true" />
                <div>
                    <CnGalWebSite.Shared.Component.Votes.Relevances.ListRelatedVotesInforCard Type="VoteOptionType.Entry" Id="Model.Id" />
                </div>
            </CnGalWebSite.Components.Containers.MasaTitleContainer>
        </div>
    }



@code {
    [Parameter]
    public EntryIndexViewModel Model { get; set; }
    [Parameter]
    public EventCallback<Operation> OnRevoke { get; set; }

}
